.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: top 1s 
    ease-in-out;
    z-index: 1000;
    // 两个动画效果
    &.nav-down {
        animation: nav-down-animation .5s ease-out forwards;
    }
    &.nav-up {
        animation: nav-up-animation .5s ease-out forwards;
    }
    .s-nav {
        background-color: #2c2c2c;
        width: 100%;
        min-width: 1200px;
        // 高度为38px
        height: 38px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        .s-nav-box {
            width: 76%;
            height: 100%;
            box-sizing: border-box;
            display: flex;
            justify-content: right;
            align-items: center;
            .ant-input-affix-wrapper {
                box-shadow: none;
                width: 210px;
                background-color: rgba(142, 142, 142, 0.65);
                outline: none;
                border: 0;
                position: relative;
                .ant-input-prefix {
                    svg {
                        fill: #ffffff;
                    }
                }
                input {
                    border: 0;
                    outline: none;
                    font-size: 14px;
                    color: #fff;
                    background-color: transparent;
                    padding-left: 6px;
                }
                .ant-input-suffix {
                   .nav-list {
                        color: #cecece;
                        font-size: 12px;
                        cursor: pointer;
                        .nav-article-list {
                            position: absolute;
                            z-index: 1100;
                            top: 110%;
                            right: 0;
                            width: 76px;
                            box-sizing: border-box;
                            background: #fff;
                            color: #333;
                            .nav-article-list-item {
                                width: 100%;
                                padding: 9px 14px;
                                &:hover {
                                    cursor: pointer;
                                    background: #f3f3f3;
                                }
                            }
                        }
                   }
                }
            }
            .anticon-plus-circle {
                width: 20px;
                height: 20px;
                margin: 0 20px;
                cursor: pointer;
                svg {
                    width: 100%;
                    height: 100%;
                    fill: #cecece;
                }
            }
            .anticon-bell {
                width: 20px;
                height: 20px;
                cursor: pointer;
                svg {
                    width: 100%;
                    height: 100%;
                    fill: #cecece;
                }
            }
        }
    }
    .s-header {
        width: 100%;
        min-width: 1200px;
        height: 58px;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(#000, 0.1);
        .s-header-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 76%;
            .s-header-box-left {
                box-sizing: border-box;
                height: 100%;
                display: flex;
                justify-content: left;
                align-items: center;
                .left-title {
                    margin: 0;
                }
                .left-list {
                    list-style: none;
                    height: 100%;
                    margin: 0;
                    box-sizing: border-box;
                    li {
                        height: 100%;
                        display: inline-flex;
                        align-items: center;
                        padding: 0 14px;
                        box-sizing: border-box;
                        cursor: pointer;
                        .anticon-home {
                            svg {
                                fill: #000;
                            }
                        }
                        .left-list-arrow {
                            margin-left: 4px;
                            .iconfont {
                                font-size: 10px;
                            }
                            .icon-arrowdown {
                                display: block;
                                transition: all 3s;
                            }
                            .icon-arrowon {
                                display: none;
                            }
                        }
                        
                        &:hover {
                            border-bottom: 2px solid black;
                            .left-list-arrow {
                                .icon-arrowdown {
                                    display: none;
                                }
                                .icon-arrowon {
                                    display: block;
                                }
                            }
                        }
                        &.left-home {
                            position: relative;
                            a {
                                position: absolute;
                                left: 0;
                                right: 0;
                                bottom: 0;
                                top: 0;
                                color: rgba(0, 0, 0, 0.85);
                            }
                        }
                        &.left-game {
                            position: relative;
                            &:hover {
                                .left-list-li-items {
                                    display: block;
                                }
                            }
                            .left-list-li-items {
                                position: absolute;
                                overflow: hidden;
                                width: 200px;
                                padding: 12px 0;
                                z-index: 900;
                                top: 103%;
                                left: -10%;
                                display: none;
                                background-color: #fff;
                                box-shadow: 0 3px 3px rgba(26, 26, 26, 0.1);
                                border-bottom-left-radius: 5px;
                                border-bottom-right-radius: 5px;
                                .left-list-li-item {
                                    font-size: 14px;
                                    padding: 6px 10px;
                                    background-color: transparent;
                                    &:hover {
                                        background-color: #f2f2f2;
                                    }
                                }
                            }
                        }
                        &.left-msg {
                            .left-list-li {
                                color: #ff0000;
                            }
                            &:hover {
                                border-color: #fc3c2d;
                            }
                        }
                    }
                }
            }
            .s-header-box-right {
                button {
                    padding: 5px 13px;
                }
                .right-login {
                    border-radius: 5px;
                    overflow: hidden;
                    font-size: 12px;
                    color: #7fbbe2;
                    border: 1px solid #7fbbe2;
                    margin-right: 8px;
                }
                .right-register {
                    border-radius: 5px;
                    overflow: hidden;
                    font-size: 12px;
                    color: #fff;
                    background-color: #7fbbe2;
                }
            }
        }
    }
}

@keyframes nav-down-animation {
    0% {
        top: 0;
    }
    100% {
        top: -40px;
    }
}
@keyframes nav-up-animation {
    0% {
        top: -40px;
    }
    100% {
        top: 0px;
    }
}